{extend name='main'}

{block name="button"}



{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='car/index_search'}
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='layui-hide-xs'>用户名称</th>
            <th class='layui-hide-xs'>车牌号</th>
            <th class='layui-hide-xs'>里程</th>
            <th class='layui-hide-xs'>录入时间</th>
            <th class='layui-hide-xs'>付款状态</th>
            <th class='layui-hide-xs'>总金额</th>
            <th class='layui-hide-xs'>已付金额</th>
            <th width="15%" class='layui-hide-xs'>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class="nowrap">{$vo.nickname}</td>
            <td class="nowrap">{$vo.number}</td>
            <td class="nowrap" >{$vo.mileage}</td>
            <td class="nowrap">{$vo.start_at}</td>
            <td class="nowrap">{$privacy[$vo.status]}</td>
<!--            <td class="nowrap">{$vo.status}</td>-->
            <td class="nowrap">{$vo.total}</td>
            <td class="nowrap">{$vo.paid}</td>
            <td  class='text-center nowrap notselect'>
                {if auth("edit")}
                <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑信息" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-sm" data-confirm="确定要删除吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}

